package sep.test;

import static com.googlecode.javacv.cpp.opencv_imgproc.CV_BGR2GRAY;
import static com.googlecode.javacv.cpp.opencv_imgproc.cvCvtColor;
import static com.googlecode.javacv.cpp.opencv_imgproc.cvLaplace;

import com.googlecode.javacv.cpp.opencv_core.IplImage;

public class IdaLaplaceFilter implements IdaEdgeFilter {

	private static final long serialVersionUID = -7779876396463400220L;

	private int apertureSize = 3;

	@Override
	public void filter(IplImage original, IplImage edge) {
		cvCvtColor(original, edge, CV_BGR2GRAY);
		cvLaplace(edge, edge, apertureSize);
	}

	@Override
	public EdgeFilterType getFilterType() {
		return EdgeFilterType.Laplace;
	}

}
